package com.simple.behavior.superclassandsubclass.strategy;

/**
 * @author simple
 * @version 1.0
 * @date 2019-01-04 16:35
 * @since 1.0
 */
public class Multiply extends AbstractCalculator implements Calculator {
    @Override
    public int calculate(String exp) {
        int[] split = split(exp, "\\*");
        return split[0] * split[1];
    }
}
